/* -----------------------------------------------------
 iCompose
 DownloadView.h
 
 Created by Team: THE BEARD on 10/11/09.
 
 Members who contributed to this file:
 1. Ethan Holmes
 2. Woo Jin Chang
 
 List of changes to previous member:
 Version 1:
 Nov 13, 2009 (Woo Jin)
 - implemented Downloading method
 Nov 14, 2009 (Woo Jin)
 - revised Downloading method
 
 Simon Fraser University, 2009.
 ----------------------------------------------------- */


#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>
#import <sqlite3.h>
#import "Staff.h"
#import "iComposeAppDelegate.h"
#import "MainView.h" 

#define kDataKey	@"Data"

@interface DownloadView : UIViewController <UITableViewDelegate, UITableViewDataSource> {
	NSMutableArray *staffNames;
	sqlite3 *database;
	NSString *dataFilePathDataBase;
	NSString *name;
	NSString *dataFilePath;
	
}

@property (nonatomic, retain) NSMutableArray *staffNames;
@property (nonatomic, retain) NSString *dataFilePathDataBase;
@property (nonatomic, retain) NSString *name;
@property (nonatomic, retain) NSString *dataFilePath;

-(IBAction)back;
-(IBAction)Downloading;
-(void)getAllName;
-(void)downloadDB;
-(void)decodeAndAddStaff;
@end
